Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-13534: Use platform address for version service #3306

Merged
merged 13 commits into from
Nov 18, 2024

Conversation

idoqo
Copy link
Contributor

@idoqo idoqo commented Nov 14, 2024

PMM-13534

Link to the Feature Build: SUBMODULES-3767

If this PR adds or removes or alters one or more API endpoints, please review and add or update the relevant API documents as well:

  • API Docs updated

If this PR is related to some other PRs in this or other repositories, please provide links to those PRs:

  • Links to related pull requests (optional).

@idoqo idoqo requested review from a team as code owners November 14, 2024 07:54
@idoqo idoqo requested review from ademidoff and BupycHuk and removed request for a team November 14, 2024 07:54
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 16 lines in your changes missing coverage. Please review.

Project coverage is 43.53%. Comparing base (417d80b) to head (c4284bc).
Report is 1 commits behind head on v3.

Files with missing lines Patch % Lines
managed/services/server/updater.go 36.84% 10 Missing and 2 partials ⚠️
managed/services/server/server.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #3306      +/-   ##
==========================================
- Coverage   43.54%   43.53%   -0.01%     
==========================================
  Files         366      366              
  Lines       44162    44169       +7     
==========================================
- Hits        19232    19231       -1     
- Misses      23249    23252       +3     
- Partials     1681     1686       +5     
Flag Coverage Δ
admin 11.51% <ø> (ø)
agent 51.96% <ø> (ø)
managed 45.24% <33.33%> (-0.02%) ⬇️
vmproxy 68.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

updateCheckResultFresh = updateCheckInterval + 10*time.Minute
updateDefaultTimeout = 30 * time.Second
envfilePath = "/home/pmm/update/pmm-server.env"
defaultLatestPMMImage = "perconalab/pmm-server:3-dev-latest"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should update this now to a stable version or wait till GA is released.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it still used somewhere in code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No even, dropped it now.

managed/services/server/updater.go Outdated Show resolved Hide resolved
updateCheckResultFresh = updateCheckInterval + 10*time.Minute
updateDefaultTimeout = 30 * time.Second
envfilePath = "/home/pmm/update/pmm-server.env"
defaultLatestPMMImage = "perconalab/pmm-server:3-dev-latest"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it still used somewhere in code?

There is a possibility of nil (when we don't have any tag available).
This updates the test to allow such cases and only check if latest is
not nil
@BupycHuk BupycHuk enabled auto-merge (squash) November 18, 2024 09:43
@BupycHuk BupycHuk disabled auto-merge November 18, 2024 11:11
@BupycHuk BupycHuk enabled auto-merge (squash) November 18, 2024 11:12
@BupycHuk BupycHuk merged commit 7d61381 into v3 Nov 18, 2024
32 checks passed
@BupycHuk BupycHuk deleted the PMM-13534-consistent-env-vars branch November 18, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants